package com.czwj.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.czwj.dao.GoodsCurrentMapper;
import com.czwj.entities.Equipment;
import com.czwj.entities.GoodsCurrent;
import com.czwj.service.GoodsCurrentService;

/**
* @ClassName: GoodsCurrentServiceImpl
* @Description: TODO
* @author H
* @date 2020年4月24日
*
*/
@Service
public class GoodsCurrentServiceImpl implements GoodsCurrentService{
	@Resource
	GoodsCurrentMapper mapper;

	/** 
	* 
	* @param map
	* @return
	* @see com.czwj.service.GoodsCurrentService#search(java.util.Map)
	*/
	@Override
	public List<GoodsCurrent> search(Map<String,Object> map){
		// TODO Auto-generated method stub
		return this.mapper.search(map);
	}

	/** 
	* 
	* @param map
	* @return
	* @see com.czwj.service.GoodsCurrentService#count(java.util.Map)
	*/
	@Override
	public int count(Map<String,Object> map){
		// TODO Auto-generated method stub
		return this.mapper.count(map);
	}

	/** 
	* 
	* @param equipment
	* @return
	* @see com.czwj.service.GoodsCurrentService#insert(com.czwj.entities.Equipment)
	*/
	@Override
	public int insert(GoodsCurrent equipment){
		// TODO Auto-generated method stub
		return this.mapper.insertSelective(equipment);
	}

	/** 
	* 
	* @param map
	* @return
	* @see com.czwj.service.GoodsCurrentService#searchbylevel2(java.util.Map)
	*/
	@Override
	public List<GoodsCurrent> searchbylevel2(Map<String,Object> map){
		// TODO Auto-generated method stub
		return this.mapper.searchbylevel2(map);
	}

	/** 
	* 
	* @param map
	* @return
	* @see com.czwj.service.GoodsCurrentService#countbylevel2(java.util.Map)
	*/
	@Override
	public int countbylevel2(Map<String,Object> map){
		// TODO Auto-generated method stub
		return this.mapper.countbylevel2(map);
	}

	/** 
	* 
	* @param id
	* @return
	* @see com.czwj.service.GoodsCurrentService#selectByPrimaryKey(int)
	*/
	@Override
	public GoodsCurrent selectByPrimaryKey(int id){
		// TODO Auto-generated method stub
		return this.mapper.selectByPrimaryKey(id);
	}

	/** 
	* 
	* @param daily
	* @return
	* @see com.czwj.service.GoodsCurrentService#update(com.czwj.entities.GoodsCurrent)
	*/
	@Override
	public int update(GoodsCurrent daily){
		// TODO Auto-generated method stub
		return this.mapper.updateByPrimaryKeySelective(daily);
	}

	/** 
	* 
	* @param map
	* @return
	* @see com.czwj.service.GoodsCurrentService#searchReviewedLevel2(java.util.Map)
	*/
	@Override
	public List<GoodsCurrent> searchReviewedLevel2(Map<String,Object> map){
		// TODO Auto-generated method stub
		return this.mapper.searchReviewedLevel2(map);
	}

	/** 
	* 
	* @param map
	* @return
	* @see com.czwj.service.GoodsCurrentService#countReviewedLevel2(java.util.Map)
	*/
	@Override
	public int countReviewedLevel2(Map<String,Object> map){
		// TODO Auto-generated method stub
		return this.mapper.countReviewedLevel2(map);
	}
}
